package com.example.mapper;

import com.example.pojo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeacherMapper {
    Teacher login(Teacher teacher);

    String getNameByUserName(String username);

    List<Plan> getPlanByUsername(String username);

    Teacher getByUserMsg(String username);

    void addPlan(Progress plan);

    Integer getIdByUser(String username);

    Plan selectPlan(SelectDeta selectDeta);

    Teacher login2(Teacher teacher);

    List<HomeWork> getHomeWork(String username);

    void addHomeWork(HomeWork homeWork);

    HomeWork selectHomeWork(SelectDeta selectDeta);

    List<Task> getTask(String username);

    Task selectTask(SelectDeta selectDeta);

    void addTask(Task task);

    String getName(String username);

    List<StudentHomeWork> getByhw(String username);


    Integer greadClassId(String username);
    List<Announcemen> getAnnoun(Integer greadClassId);


    List<Progress> listProgress(String username);

    void addProgress(Progress progress);

    void setPassWord(Pass pass);

    List<Opinion> listOpinion(String username);

    List<Teacher> listTeacher();

    List<Student> listStudent(String username);

    void addClassFee(ClassFee classFee);

    Integer getId(String username);

    List<Teacher> getTeacherByClass(String username);
}
